package student.mindmap.utils;

import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;

public class Log {

    // 基础警告对话框
    public static void showAlert(String title, String header, String content) {
        Alert alert = new Alert(AlertType.WARNING);
        alert.setTitle(title);
        alert.setHeaderText(header);
        alert.setContentText(content);
        alert.showAndWait();
    }

    // 快捷方法（适用于简单提示）
    public static void showSimpleAlert(String message) {
        showAlert("操作提示", null, message);
    }
}